/*
 * Created by JFormDesigner on Thu Jul 29 01:43:23 BRT 2010
 */

package visualCAD;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

/**
 * @author Brainrain
 */
public class bezierWindowView extends JFrame {
	public bezierWindowView() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel2 = new JPanel();
		label7 = new JLabel();
		nameTextField = new JTextField();
		label2 = new JLabel();
		p1xSpinner = new JSpinner();
		label1 = new JLabel();
		p1ySpinner = new JSpinner();
		label16 = new JLabel();
		label3 = new JLabel();
		p2xSpinner = new JSpinner();
		label8 = new JLabel();
		p2ySpinner = new JSpinner();
		label19 = new JLabel();
		label4 = new JLabel();
		p3xSpinner = new JSpinner();
		label9 = new JLabel();
		p3ySpinner = new JSpinner();
		label20 = new JLabel();
		label6 = new JLabel();
		p4xSpinner = new JSpinner();
		label10 = new JLabel();
		p4ySpinner = new JSpinner();
		label21 = new JLabel();
		label5 = new JLabel();
		p5xSpinner = new JSpinner();
		label11 = new JLabel();
		p5ySpinner = new JSpinner();
		label22 = new JLabel();
		panel3 = new JPanel();
		panel4 = new JPanel();
		panel5 = new JPanel();
		panel6 = new JPanel();
		panel7 = new JPanel();
		label15 = new JLabel();
		p6xSpinner = new JSpinner();
		label17 = new JLabel();
		p6ySpinner = new JSpinner();
		label18 = new JLabel();
		label23 = new JLabel();
		xPositionSpinner = new JSpinner();
		label26 = new JLabel();
		label24 = new JLabel();
		yPositionSpinner = new JSpinner();
		label27 = new JLabel();
		label25 = new JLabel();
		zPositionSpinner = new JSpinner();
		label28 = new JLabel();
		label29 = new JLabel();
		widthSpinner = new JSpinner();
		label30 = new JLabel();
		label12 = new JLabel();
		toleranceSpinner = new JSpinner();
		label13 = new JLabel();
		holePanel = new JPanel();
		bezierSplitPanel = new JSplitPane();
		cancelButton = new JButton();
		submitButton = new JButton();
		helpButton = new JButton();
		satusLabel = new JLabel();

		//======== this ========
		setTitle("Create Bezier Path");
		setVisible(true);
		Container contentPane = getContentPane();

		//======== panel2 ========
		{
			panel2.setLayout(new GridBagLayout());
			((GridBagLayout)panel2.getLayout()).columnWidths = new int[] {0, 0, 0, 50, 5, 0, 0, 5, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).rowHeights = new int[] {0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0};
			((GridBagLayout)panel2.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
			((GridBagLayout)panel2.getLayout()).rowWeights = new double[] {1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

			//---- label7 ----
			label7.setText("Name:");
			panel2.add(label7, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(nameTextField, new GridBagConstraints(3, 1, 6, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label2 ----
			label2.setText("Point 1:");
			panel2.add(label2, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p1xSpinner ----
			p1xSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p1xSpinner, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label1 ----
			label1.setText("X");
			panel2.add(label1, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p1ySpinner ----
			p1ySpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p1ySpinner, new GridBagConstraints(6, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label16 ----
			label16.setText("Y");
			panel2.add(label16, new GridBagConstraints(8, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label3 ----
			label3.setText("Point 2:");
			panel2.add(label3, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p2xSpinner ----
			p2xSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p2xSpinner, new GridBagConstraints(3, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label8 ----
			label8.setText("X");
			panel2.add(label8, new GridBagConstraints(5, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p2ySpinner ----
			p2ySpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p2ySpinner, new GridBagConstraints(6, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label19 ----
			label19.setText("Y");
			panel2.add(label19, new GridBagConstraints(8, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label4 ----
			label4.setText("Point 3:");
			panel2.add(label4, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p3xSpinner ----
			p3xSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p3xSpinner, new GridBagConstraints(3, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label9 ----
			label9.setText("X");
			panel2.add(label9, new GridBagConstraints(5, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p3ySpinner ----
			p3ySpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p3ySpinner, new GridBagConstraints(6, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label20 ----
			label20.setText("Y");
			panel2.add(label20, new GridBagConstraints(8, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label6 ----
			label6.setText("Point 4:");
			panel2.add(label6, new GridBagConstraints(1, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p4xSpinner ----
			p4xSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p4xSpinner, new GridBagConstraints(3, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label10 ----
			label10.setText("X");
			panel2.add(label10, new GridBagConstraints(5, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p4ySpinner ----
			p4ySpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p4ySpinner, new GridBagConstraints(6, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label21 ----
			label21.setText("Y");
			panel2.add(label21, new GridBagConstraints(8, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label5 ----
			label5.setText("Point 5:");
			panel2.add(label5, new GridBagConstraints(1, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p5xSpinner ----
			p5xSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p5xSpinner, new GridBagConstraints(3, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label11 ----
			label11.setText("X");
			panel2.add(label11, new GridBagConstraints(5, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p5ySpinner ----
			p5ySpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p5ySpinner, new GridBagConstraints(6, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label22 ----
			label22.setText("Y");
			panel2.add(label22, new GridBagConstraints(8, 11, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//======== panel3 ========
			{
				panel3.setLayout(new BorderLayout());

				//======== panel4 ========
				{
					panel4.setLayout(new BorderLayout());

					//======== panel5 ========
					{
						panel5.setLayout(new BorderLayout());

						//======== panel6 ========
						{
							panel6.setLayout(new BorderLayout());

							//======== panel7 ========
							{
								panel7.setLayout(new BorderLayout());
							}
							panel6.add(panel7, BorderLayout.SOUTH);
						}
						panel5.add(panel6, BorderLayout.SOUTH);
					}
					panel4.add(panel5, BorderLayout.SOUTH);
				}
				panel3.add(panel4, BorderLayout.SOUTH);
			}
			panel2.add(panel3, new GridBagConstraints(1, 12, 2, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label15 ----
			label15.setText("Point 6:");
			panel2.add(label15, new GridBagConstraints(1, 13, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p6xSpinner ----
			p6xSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p6xSpinner, new GridBagConstraints(3, 13, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label17 ----
			label17.setText("X");
			panel2.add(label17, new GridBagConstraints(5, 13, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- p6ySpinner ----
			p6ySpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(p6ySpinner, new GridBagConstraints(6, 13, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label18 ----
			label18.setText("Y");
			panel2.add(label18, new GridBagConstraints(8, 13, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label23 ----
			label23.setText("X position:");
			panel2.add(label23, new GridBagConstraints(1, 15, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- xPositionSpinner ----
			xPositionSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(xPositionSpinner, new GridBagConstraints(3, 15, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label26 ----
			label26.setText("mm");
			panel2.add(label26, new GridBagConstraints(5, 15, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label24 ----
			label24.setText("Y position:");
			panel2.add(label24, new GridBagConstraints(1, 17, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- yPositionSpinner ----
			yPositionSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(yPositionSpinner, new GridBagConstraints(3, 17, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label27 ----
			label27.setText("mm");
			panel2.add(label27, new GridBagConstraints(5, 17, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label25 ----
			label25.setText("Z position:");
			panel2.add(label25, new GridBagConstraints(1, 19, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- zPositionSpinner ----
			zPositionSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(zPositionSpinner, new GridBagConstraints(3, 19, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label28 ----
			label28.setText("mm");
			panel2.add(label28, new GridBagConstraints(5, 19, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label29 ----
			label29.setText("Width:");
			panel2.add(label29, new GridBagConstraints(1, 21, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- widthSpinner ----
			widthSpinner.setModel(new SpinnerNumberModel(0.1, 0.1, null, 0.1));
			panel2.add(widthSpinner, new GridBagConstraints(3, 21, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label30 ----
			label30.setText("mm");
			panel2.add(label30, new GridBagConstraints(5, 21, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label12 ----
			label12.setText(" +/-");
			panel2.add(label12, new GridBagConstraints(1, 23, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- toleranceSpinner ----
			toleranceSpinner.setModel(new SpinnerNumberModel(50, 0, 50, 1));
			panel2.add(toleranceSpinner, new GridBagConstraints(3, 23, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label13 ----
			label13.setText(" um");
			panel2.add(label13, new GridBagConstraints(5, 23, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
		}

		//======== holePanel ========
		{
			holePanel.setBackground(Color.white);
			holePanel.setBorder(LineBorder.createBlackLineBorder());
			holePanel.setLayout(new BorderLayout());

			//======== bezierSplitPanel ========
			{
				bezierSplitPanel.setOrientation(JSplitPane.VERTICAL_SPLIT);
			}
			holePanel.add(bezierSplitPanel, BorderLayout.CENTER);
		}

		//---- cancelButton ----
		cancelButton.setText("Cancel");

		//---- submitButton ----
		submitButton.setText("Submit");

		//---- helpButton ----
		helpButton.setText("Help");

		//---- satusLabel ----
		satusLabel.setText("Status:");

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(satusLabel)
						.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
							.addComponent(helpButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(submitButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(cancelButton))
						.addComponent(holePanel, GroupLayout.DEFAULT_SIZE, 388, Short.MAX_VALUE))
					.addContainerGap())
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(holePanel, GroupLayout.PREFERRED_SIZE, 433, GroupLayout.PREFERRED_SIZE))
						.addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(cancelButton)
						.addComponent(submitButton)
						.addComponent(helpButton)
						.addComponent(satusLabel))
					.addContainerGap())
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JPanel panel2;
	private JLabel label7;
	public JTextField nameTextField;
	private JLabel label2;
	public JSpinner p1xSpinner;
	private JLabel label1;
	public JSpinner p1ySpinner;
	private JLabel label16;
	private JLabel label3;
	public JSpinner p2xSpinner;
	private JLabel label8;
	public JSpinner p2ySpinner;
	private JLabel label19;
	private JLabel label4;
	public JSpinner p3xSpinner;
	private JLabel label9;
	public JSpinner p3ySpinner;
	private JLabel label20;
	private JLabel label6;
	public JSpinner p4xSpinner;
	private JLabel label10;
	public JSpinner p4ySpinner;
	private JLabel label21;
	private JLabel label5;
	public JSpinner p5xSpinner;
	private JLabel label11;
	public JSpinner p5ySpinner;
	private JLabel label22;
	private JPanel panel3;
	private JPanel panel4;
	private JPanel panel5;
	private JPanel panel6;
	private JPanel panel7;
	private JLabel label15;
	public JSpinner p6xSpinner;
	private JLabel label17;
	public JSpinner p6ySpinner;
	private JLabel label18;
	private JLabel label23;
	public JSpinner xPositionSpinner;
	private JLabel label26;
	private JLabel label24;
	public JSpinner yPositionSpinner;
	private JLabel label27;
	private JLabel label25;
	public JSpinner zPositionSpinner;
	private JLabel label28;
	private JLabel label29;
	public JSpinner widthSpinner;
	private JLabel label30;
	private JLabel label12;
	public JSpinner toleranceSpinner;
	private JLabel label13;
	public JPanel holePanel;
	public JSplitPane bezierSplitPanel;
	public JButton cancelButton;
	public JButton submitButton;
	public JButton helpButton;
	public JLabel satusLabel;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
